<?php


/** 
 * 敏感词数据
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */

namespace Common\Service;

Class SensitiveService extends BaseService
{
	
	/** 
	  keyword |
	  replace
	 */

	//ERROR 错误
	CONST ERROR_NAME 	 = '敏感词不能为空!';

	CONST UNIQUE_NAME	= '敏感词已存在';
	protected $_validate = array(
		array('keyword', 'require', self::ERROR_NAME, self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
		array('keyword', '', self::UNIQUE_NAME, self::MUST_VALIDATE , 'unique', self::MODEL_BOTH),
	);

	protected $_auto = array(
        array('status', 0, self::MODEL_INSERT),
    );  
}